<?xml version="1.0"?>

 <xsl:stylesheet version="1.0"
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 <xsl:output method="html"
            encoding="ISO-8859-1"
            indent="no"/>

 <xsl:template match="/requestList">
	<html>
		<head>
			<title>Service request menu</title>
		</head>
		<body>
			<form action="serviceRequestMenu?action=newServiceRequest" method="post">
				<input type="submit" name="actionButton" value="New request"/>
			</form>

			Request list: <br />
			<table>
				<tr>
					<th>ID</th>
					<th>Customer name</th>
					<th>Created by</th>
					<th>Customer description</th>
					<th>Employee description</th>
					<th>Status</th>
					<th>...</th>
				</tr>
		       <xsl:for-each select="customer">
		         <tr>
		           <td><xsl:value-of select="id"/></td>
		           <td><xsl:value-of select="customerName"/></td>
		           <td><xsl:value-of select="createdBy"/></td>
		           <td><xsl:value-of select="customerDesc"/></td>
		           <td><xsl:value-of select="employeeDesc"/></td>
		           <td><xsl:value-of select="status"/></td>
		           <td><a><xsl:attribute name="href">./serviceRequest?id=<xsl:value-of select="serviceRequest"/></xsl:attribute>Change</a></td>
		         </tr>
		       </xsl:for-each>
		     </table>
		</body>
   </html>
 </xsl:template>

 </xsl:stylesheet>